package com.example.boot.dlbigtype.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.example.boot.dlbigtype.service.DlBigTypeService;
import com.example.boot.util.ResultData;
import com.example.boot.util.ResultUtil;

@RestController
public class DlBigTypeController {
	@Autowired
	private DlBigTypeService dlBigTypeService;
	/**
	 * 查找类型
	 * 
	 * @return
	 * @throws Exception
	 */
	@RequestMapping(value = "goods/type", method = RequestMethod.GET)
	public ResultData<Object> findGoodsType() throws Exception {
		return ResultUtil.success(dlBigTypeService.findGoodsType());
	}

}
